package com.jianyushe.gof23.learncode.creationalpattern.factory.abstractfactory;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Create by Alvin
 * @Description TODO
 * @date 2021-10-11 15:53
 */
public interface Engine {
    void run();
    void start();
}

class LuxuryEngine implements Engine{
     private static final Logger LOGGER = LoggerFactory.getLogger(LuxuryEngine.class);

    @Override
    public void run() {
        LOGGER.info("转得快！");
    }

    @Override
    public void start() {
        LOGGER.info("性能很好！");
    }
}

class LowEngine implements Engine{
     private static final Logger LOGGER = LoggerFactory.getLogger(LowEngine.class);

    @Override
    public void run() {
        LOGGER.info("转得慢！");
    }

    @Override
    public void start() {
        LOGGER.info("性能差！");
    }
}
